home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_basi / agavb25.zip / VC.ZIP / VCDEMDOC.CPP < prev    next >
C/C++ Source or Header  |  1995-12-11  |  2KB  |  81 lines

  1. // vcdemdoc.cpp : implementation of the CVcdemoDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vcdemo.h"
  6.  
  7. #include "vcdemdoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CVcdemoDoc
  16.  
  17. IMPLEMENT_DYNCREATE(CVcdemoDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CVcdemoDoc, CDocument)
  20.     //{{AFX_MSG_MAP(CVcdemoDoc)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code!
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CVcdemoDoc construction/destruction
  28.  
  29. CVcdemoDoc::CVcdemoDoc()
  30. {
  31.     // TODO: add one-time construction code here
  32. }
  33.  
  34. CVcdemoDoc::~CVcdemoDoc()
  35. {
  36. }
  37.  
  38. BOOL CVcdemoDoc::OnNewDocument()
  39. {
  40.     if (!CDocument::OnNewDocument())
  41.         return FALSE;
  42.  
  43.     // TODO: add reinitialization code here
  44.     // (SDI documents will reuse this document)
  45.  
  46.     return TRUE;
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CVcdemoDoc serialization
  51.  
  52. void CVcdemoDoc::Serialize(CArchive& ar)
  53. {
  54.     if (ar.IsStoring())
  55.     {
  56.         // TODO: add storing code here
  57.     }
  58.     else
  59.     {
  60.         // TODO: add loading code here
  61.     }
  62. }
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CVcdemoDoc diagnostics
  66.  
  67. #ifdef _DEBUG
  68. void CVcdemoDoc::AssertValid() const
  69. {
  70.     CDocument::AssertValid();
  71. }
  72.  
  73. void CVcdemoDoc::Dump(CDumpContext& dc) const
  74. {
  75.     CDocument::Dump(dc);
  76. }
  77. #endif //_DEBUG
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80. // CVcdemoDoc commands
  81.